import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        
        // 输入数组大小n
        int n = scanner.nextInt();
        int[] array = new int[n];
        
        // 输入n个整数，放入数组
        for (int i = 0; i < n; ) {
            try {
                String input = scanner.next();
                array[i] = Integer.parseInt(input);
                i++; // 只有成功解析为整数后，才增加i的值
            } catch (NumberFormatException e) {
                // 捕获异常并输出异常信息
                System.out.println(e);
            }
        }
        
        // 输出数组内容
        System.out.println(Arrays.toString(array));
        
        scanner.close();
    }
}